/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>
#include <vector>
#include <list>
#include <deque>
#include <cstdlib>
#include <ctime>
using namespace std;
void show(auto container,string sep=" ")
{
    for(auto ele:container)
    {
        cout << ele << " ";
    }
    cout   << endl;
}
int main_17()
{
    srand((unsigned int)time(nullptr));
    vector<int> v1,v2;
    int random_num;
    for (int i=0;i<10 ;++i )
    {
        random_num=rand()%100;
        v1.push_back(random_num);
        random_num=rand()%100;
        v2.push_back(random_num);
    }
    show(v1);
    show(v2);
    v2.pop_back();
    cout << "swap" << endl;
    v1.swap(v2);
    show(v1);
    show(v2);
    cout << "assign" << endl;
    v1=v2;
    show(v1);
    show(v2);
    cout << "assign" << endl;
    v1.assign({1,4,3});
    v2={5,4,1};
    show(v1);
    show(v2);
	return 0;
}
